package com.atguigu.service.impl;

import com.atguigu.bean.UserAddress;
import com.atguigu.service.OrderService;
import com.atguigu.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Title: OrderServiceImpl
 * Description: TODO
 *
 * @author gejx
 * @version V1.0
 * @date 2021-12-22
 */
@Service
public class OrderServiceImpl implements OrderService {
    @Autowired
    private UserService userService;
    @Override
    public void initOrder(String userId) {
        List<UserAddress> userAddressList = userService.getUserAddressList(userId);
        System.out.println(userAddressList);
    }
}
